<!doctype html>
<html>
    <head>
        <title>E-mail</title>
    </head>
    <body>
        <?php
        $to = "deathangel962@yahoo.com";
        if (isset($_REQUEST['email']))
        //if "email" is filled out, send email
          {
          //send email
          $email = $_REQUEST['email'] ;
          $subject = $_REQUEST['subject'] ;
          $message = $_REQUEST['message'] ;
          mail($to, $subject, $message, "From:" . $email);
          echo "Thank you for using our mail form";
          }
        else
        //if "email" is not filled out, display the form
          {
        ?>
        <form method="post" action=''>
        Email: <input type="text" name="email" /><br />
        Subject: <input type="text" name="subject" /><br />
        Message:<br />
        <textarea name='message' rows='5' cols='30'></textarea><br  />
        <input type="submit" />
        </form>
        <?php 
           }
        ?>
    </body>
</html>